package service

import "github.com/jinzhu/gorm"

type BaseService struct {
	DictionaryService  *dictionaryService
	HealthCheckService *healthCheckService
	UserService        *userService
	TransactionService *transactionService
	MetricsService     *metricsService
}

func NewBaseService(db *gorm.DB) *BaseService {
	return &BaseService{
		DictionaryService:  newDictionaryService(db),
		HealthCheckService: newHelathCheckService(db),
		UserService:        newUserService(db),
		TransactionService: newTransactionService(db),
		MetricsService:     newMetricsService(db),
	}
}
